package com.lsp.server.product.mapper;

import com.lsp.server.product.domain.vo.AttrShow;
import com.lsp.server.product.domain.vo.AttrVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @ClassName AttrMapper
 * @Description 属性管理mapper层
 * @Author Mr Hao
 * @Date 2021/11/23 15:19
 */
@Mapper
public interface AttrMapper {

    Long queryCount(Map map);

    List<AttrShow> queryData(Map map);

    @Select("select * from product_attr where type_id=#{tid} ")
    List<AttrVo> queryAllData(Integer tid);
}
